﻿<dx:DXWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
    xmlns:Custom="http://schemas.devexpress.com/winfx/2008/xaml/charts/rangecontrolclient" 
    xmlns:DataAccess="clr-namespace:LibraryManagement.DataAccess;assembly=LibraryManagement.DataAccess" 
    x:Class="LibraryManagement.UI.Employee.Dialogs.SaveNewBookDialog"
	Title="Add Book" Height="424" Width="420" WindowStyle="ThreeDBorderWindow" 
	WindowStartupLocation="CenterOwner" Icon="{dx:DXImage Image=Fill_32x32.png}" Loaded="DXWindow_Loaded">
    <Grid x:Name="MainGrid" Margin="0,0,0,26">

        <TextBox x:Name="ISBN" HorizontalAlignment="Left" Height="23" Margin="102,60,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="262"/>
        <TextBox x:Name="Title" Height="23" Margin="102,20,28,0" TextWrapping="Wrap" VerticalAlignment="Top" />
        <Label x:Name="BookName_Label" Content="Title:" HorizontalAlignment="Left" Margin="10,20,0,0" VerticalAlignment="Top" Width="72" ToolTip="Book Title" Foreground="#FF08BCFF"/>
        <Label x:Name="ISBN_Label" Content="ISBN:" HorizontalAlignment="Left" Margin="10,62,0,0" VerticalAlignment="Top" Width="72" ToolTip="Book Title" Foreground="#FF08BCFF"/>
        <Label x:Name="PageCount_Label" Content="Page Count:" HorizontalAlignment="Left" Margin="10,100,0,0" VerticalAlignment="Top" Width="72" ToolTip="Pages" Foreground="#FF08BCFF"/>
        <dxe:SpinEdit x:Name="PageCount" HorizontalAlignment="Left" VerticalAlignment="Top" Width="262" Margin="102,100,0,0" IsFloatValue="False" Increment="100" MinValue="50" FlowDirection="RightToLeft"/>
        <Label x:Name="PublishDate_Label" Content="Publish Date:" HorizontalAlignment="Left" Margin="10,175,0,0" VerticalAlignment="Top" Width="72" ToolTip="Pages" Foreground="#FF08BCFF" RenderTransformOrigin="0.423,3.285"/>
        <dxe:DateEdit x:Name="PublishDate" HorizontalAlignment="Left" Margin="102,175,0,0" VerticalAlignment="Top" Width="262"/>

        <dxe:ComboBoxEdit x:Name="InitialStatus" HorizontalAlignment="Left" Margin="102,214,0,0" VerticalAlignment="Top" Width="262" AddNewButtonPlacement="None" ImmediatePopup="True" SelectedIndex="3" AutoComplete="True" IsTextEditable="False">
            <dxe:ComboBoxEdit.StyleSettings>
                <dxe:RadioComboBoxStyleSettings/>
            </dxe:ComboBoxEdit.StyleSettings>
        </dxe:ComboBoxEdit>
        <Label x:Name="Edition_Label" Content="Edition:" HorizontalAlignment="Left" Margin="10,137,0,0" VerticalAlignment="Top" Width="72" ToolTip="Book edition" Foreground="#FF08BCFF"/>
        <dxe:SpinEdit x:Name="Edition" HorizontalAlignment="Left" VerticalAlignment="Top" Width="262" Margin="102,137,0,0" IsFloatValue="False" MinValue="1" FlowDirection="RightToLeft"/>
        <Label x:Name="IntialStatus_Label" Content="Initial Status:" HorizontalAlignment="Left" Margin="10,214,0,0" VerticalAlignment="Top" Width="72" ToolTip="Pages" Foreground="#FF08BCFF" RenderTransformOrigin="0.423,3.285"/>

        <Label x:Name="Publiser_Label" Content="Publisher:" Margin="10,246,310,0" VerticalAlignment="Top" ToolTip="publisher" Foreground="#FF08BCFF" RenderTransformOrigin="0.423,3.285"/>
        <dxe:ComboBoxEdit x:Name="Publisher" 
			Margin="102,247,0,0" VerticalAlignment="Top" 
                AddNewButtonPlacement="None" ImmediatePopup="True"
                AutoComplete="True" IsTextEditable="False" SelectedIndex="0" HorizontalAlignment="Left" Width="219">
            <dxe:ComboBoxEdit.StyleSettings>
                <dxe:RadioComboBoxStyleSettings/>
            </dxe:ComboBoxEdit.StyleSettings>
        </dxe:ComboBoxEdit>
        <Label x:Name="Authors_Label" Content="Authors:" HorizontalAlignment="Left" Margin="10,286,0,0" VerticalAlignment="Top" Width="72" Foreground="#FF08BCFF" RenderTransformOrigin="0.423,3.285"/>
        <Label x:Name="AuthorSelectionStart" Content="Click Here to start selecting" Margin="102,288,28,0" VerticalAlignment="Top" Foreground="White" RenderTransformOrigin="0.423,3.285" FontStyle="Italic" Cursor="Hand" MouseLeftButtonUp="AuthorSelectionStart_MouseLeftButtonUp">
            <Label.Effect>
                <DropShadowEffect Color="#FFFF0404" BlurRadius="9" ShadowDepth="1"/>
            </Label.Effect>
        </Label>
        <Button Content="Ok" HorizontalAlignment="Left" Margin="204,334,0,0" VerticalAlignment="Top" Width="75" ToolTip="Save it!"/>
        <Button Content="Cancel" HorizontalAlignment="Left" Margin="289,334,0,0" VerticalAlignment="Top" Width="75" ToolTip="Cancel operation"/>
        <Button Content="+" Padding="0, -1, 0, 0" ToolTip="Quick add a new author"
                Margin="325,247,0,0" VerticalAlignment="Top" Height="22" HorizontalAlignment="Left" Width="39"/>


    </Grid>
</dx:DXWindow>
